package com.leruan.aasimp.dao;

import java.util.List;
import java.util.Map;

import com.leruan.aasimp.entity.Reply;
import com.leruan.aasimp.entitydto.ReplyDto;

public interface ReplyDao {

    void insertReply(Reply reply);

    List<Reply> findReplyByPostId(String postId);

    void deleteReplyByPostId(String postId);

    List<ReplyDto> findReplyByPostId(String postId, Map<String, String> map, int pageNo);

    Long findReplyTotal(Map<String, String> map);

    List<ReplyDto> findReply(Map<String, String> map, int pageNo);

    List<Reply> findReplyByUserId(String userId);

    void updateReply(Reply reply);

    Long findReplyNumberById(String userId);

}
